package com.greenant.store.bean;

import java.util.ArrayList;
import java.util.List;

import com.avos.avoscloud.AVClassName;

@AVClassName(AntAVObject.CLASS_GOODS_KIND_BASE)
public class GoodsKindBase extends AntAVObject {
	
	public static final String ATTR_NAME ="name";
	public static final String ATTR_USERSTYLE ="userStyle";
	public static final String ATTR_SHOWINDEX ="showIndex";
	public static final String ATTR_STYLELIST ="styleList";
	
	private List<AntGoodsStylesBase> goodsStylesList;
	
	public String getName()
	{
		return this.getString(ATTR_NAME);
	}
	
	public void setName(String name)
	{
		this.put(ATTR_NAME, name);
	}
	
	public String getUserStyle()
	{
		return this.getString(ATTR_USERSTYLE);
	}
	 
	public void setUserStyle(int count)
	{
		this.put(ATTR_USERSTYLE,count);
	}
	
	public int getShowIndex()
	{
		return this.getInt(ATTR_SHOWINDEX);
	}
	
	public void setShowIndex(int count)
	{
		this.put(ATTR_SHOWINDEX,count);
	}
	
	public List<AntGoodsStylesBase> getGoodsStylesList()
	{
		if(goodsStylesList == null)
		{
			goodsStylesList = new ArrayList<AntGoodsStylesBase>(); 
		}
		return goodsStylesList;
	}

	public void setGoodsStylesList(List<AntGoodsStylesBase> goodsStylesList)
	{
		this.goodsStylesList = goodsStylesList;
	}
}
